package com.warren.service;

import com.warren.common.ResponseResult;
import com.warren.entity.User;
import feign.Body;
import feign.Headers;
import feign.Param;
import feign.RequestLine;

/**
 * @author warren
 * @data: 2022/3/30 10:58 AM
 * @decription:
 */
public interface ThirdAPI {
    @RequestLine("GET /user/hello")
    String get();

    @RequestLine("POST /user/save")
    @Headers("Content-Type: application/json")
    ResponseResult<User> save(User user);
}
